package org.grow.aopdrive.component;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class XLeader {
    @Autowired
    private FirstBusiness firstBusiness;
    @Autowired
    private SecondBusiness secondBusiness;
    @Autowired
    private ThridBusiness thridBusiness;

    public void showFirst(){
        firstBusiness.first("曹操");
    }
    public void showSecond(){
        secondBusiness.second("王湾");
    }
    public void showThird(){
        thridBusiness.thrid("白居易");
    }
    public void showSome(){
        firstBusiness.first("曹操");
        thridBusiness.thrid("白居易");
    }
}
